import request from "@/utils/request";



// 新增拜访
export function addVisitPlan(data) {
  return request({
    url: "/system/visitPlan",
    method: "post",
    data,
  });
}


// 拜访列表
export function getVisitList(params) {
  return request({
    url: `/system/visitPlan/list`,
    method: "get",
    params,
  });
}

// 拜访详情
export function getVisitDetail(id) {
  return request({
    url: `/system/visitPlan/${id}`,
    method: "get",
    id,
  });
}

// 新增拜访记录
export function runVisitPlan(params) {
  return request({
    url: "/system/visitPlan/run",
    method: "post",
    params,
  });
}


// 拜访列表
export function getVisitRecordList(params) {
  return request({
    url: `/system/info/list`,
    method: "get",
    params,
  });
}

// 新增拜访记录
export function completeVisitPlan(params) {
  return request({
    url: "/system/visitPlan/complete",
    method: "post",
    params,
  });
}



